<?php

use App\Base\RouteHandle;

RouteHandle::push('test', 'test@App\Controller\Rank')->middleware('App\Middleware\CheckToken');
//登录注册
RouteHandle::push('user/login', 'login@App\Controller\User');
RouteHandle::push('user/register', 'register@App\Controller\User');
RouteHandle::push('token/refresh_token', 'refreshToken@App\Controller\User')->middleware('App\Middleware\CheckToken');


//留言相关
RouteHandle::push('msg/insert', 'leaveBless@App\Controller\Bless')->middleware('App\Middleware\CheckToken');
RouteHandle::push('msg/rank', 'blessRankList@App\Controller\Bless')->middleware('App\Middleware\CheckToken');
RouteHandle::push('msg/list', 'blessList@App\Controller\Bless')->middleware('App\Middleware\CheckToken');
RouteHandle::push('msg/like', 'likeBless@App\Controller\Bless')->middleware('App\Middleware\CheckToken');


RouteHandle::push('cdk/insert', 'insertCdk@App\Controller\Cdk');
RouteHandle::push('cdk/get', 'getCdk@App\Controller\Cdk')->middleware('App\Middleware\CheckToken');
RouteHandle::push('cdk/mycdk', 'myCdk@App\Controller\Cdk')->middleware('App\Middleware\CheckToken');

//文章（测试yield导出数据）
RouteHandle::push('article/list', 'articleList@App\Controller\Article');
RouteHandle::push('article/insert', 'insertArticle@App\Controller\Article');
RouteHandle::push('article/test-create-api', 'autoCreateApi@App\Controller\Article');
RouteHandle::push('article/article/test-create-api-again', 'autoCreateApiAgain@App\Controller\Article');

//测试swagger，自动生成接口文档
RouteHandle::push('swagger/auto_docs', 'autoDocs@App\Controller\Swagger');
